PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Reaction / Liquid Ripples / flexi - bouncing balls [double mindblob neon mix].milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=2 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=0.995 |
| 9 | fVideoEchoZoom=1.007 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=1.413 |
| 26 | fWaveScale=0.418 |
| 27 | fWaveSmoothing=0.000 |
| 28 | fWaveParam=-0.660 |
| 29 | fModWaveAlphaStart=2.000 |
| 30 | fModWaveAlphaEnd=2.000 |
| 31 | fWarpAnimSpeed=0.626 |
| 32 | fWarpScale=8.642 |
| 33 | fZoomExponent=7.10084 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99951 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.09014 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.240 |
| 48 | wave_y=0.440 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=2.02310 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.000 |
| 86 | wavecode_0_b=0.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_init1=t2 = 0; |
| 89 | wave_0_init2=t3 = 0; |
| 90 | wave_0_init3=t4 = 0; |
| 91 | wave_0_init4=cl = 0; |
| 92 | wave_0_per_frame1=vol = bass*8 + mid*5 + treb*3; |
| 93 | wave_0_per_frame2=m = m*0.97 + vol*0.08; |
| 94 | wave_0_per_frame3=monitor = vol; |
| 95 | wave_0_per_frame4=beat = above(vol,res)*above(vol,m)*above(vol,16); |
| 96 | wave_0_per_frame5=diff = (1-beat)*diff + beat*(vol-res); |
| 97 | wave_0_per_frame6=res = beat*(vol + m*0.04) + (1-beat)*(res - (0.1+diff*0.02)*60/fps); |
| 98 | wave_0_per_frame7=res = max(0,res); |
| 99 | wave_0_per_frame8= |
| 100 | wave_0_per_frame9=a = beat; |
| 101 | wave_0_per_point1=tt3 = tt3*0.6 + (value1)*1; |
| 102 | wave_0_per_point2=tt2 = tt2*0.7 + tt3*0.2; |
| 103 | wave_0_per_point3=tt1 = tt1*0.8 + tt2*0.1; |
| 104 | wave_0_per_point4=d = d*0.9 + tt1*0.2; |
| 105 | wave_0_per_point5= |
| 106 | wave_0_per_point6=y = 0.5 + d*sample*(1-sample)*2; |
| 107 | wave_0_per_point7=x = -0.05 + sample*1.1; |
| 108 | wavecode_1_enabled=0 |
| 109 | wavecode_1_samples=512 |
| 110 | wavecode_1_sep=0 |
| 111 | wavecode_1_bSpectrum=1 |
| 112 | wavecode_1_bUseDots=0 |
| 113 | wavecode_1_bDrawThick=0 |
| 114 | wavecode_1_bAdditive=0 |
| 115 | wavecode_1_scaling=1.00000 |
| 116 | wavecode_1_smoothing=0.50000 |
| 117 | wavecode_1_r=1.000 |
| 118 | wavecode_1_g=0.000 |
| 119 | wavecode_1_b=0.000 |
| 120 | wavecode_1_a=1.000 |
| 121 | wave_1_init1=chance = 0; |
| 122 | wave_1_per_frame1=x = if(q9,q15,x); |
| 123 | wave_1_per_frame2=y = if(q9,q16,y); |
| 124 | wave_1_per_frame3=v = if(q9,q19,v); |
| 125 | wave_1_per_frame4=w = if(q9,q20,w); |
| 126 | wave_1_per_frame5= |
| 127 | wave_1_per_frame6=ref_w = if(q9, q10, ref_w); |
| 128 | wave_1_per_frame7= |
| 129 | wave_1_per_frame8=t1 = x; |
| 130 | wave_1_per_frame9=t2 = y; |
| 131 | wave_1_per_frame10=t3 = v; |
| 132 | wave_1_per_frame11=t4 = w; |
| 133 | wave_1_per_frame12=t5 = ref_w; |
| 134 | wave_1_per_frame13= |
| 135 | wave_1_per_frame14=t8 = 1; |
| 136 | wave_1_per_point1=x = t1 + sample*sin(t4)*t3*20; |
| 137 | wave_1_per_point2=y = t2 + sample*cos(t4)*t3*20; |
| 138 | wave_1_per_point3= |
| 139 | wave_1_per_point4=x = 0.5 + (x-0.5)/q1; |
| 140 | wave_1_per_point5=y = 0.5 + (y-0.5)/q2; |
| 141 | wavecode_2_enabled=0 |
| 142 | wavecode_2_samples=512 |
| 143 | wavecode_2_sep=0 |
| 144 | wavecode_2_bSpectrum=1 |
| 145 | wavecode_2_bUseDots=0 |
| 146 | wavecode_2_bDrawThick=0 |
| 147 | wavecode_2_bAdditive=0 |
| 148 | wavecode_2_scaling=1.00000 |
| 149 | wavecode_2_smoothing=0.50000 |
| 150 | wavecode_2_r=1.000 |
| 151 | wavecode_2_g=0.000 |
| 152 | wavecode_2_b=0.000 |
| 153 | wavecode_2_a=1.000 |
| 154 | wave_2_init1=chance = 0; |
| 155 | wave_2_per_frame1=x = if(q9,q15,x); |
| 156 | wave_2_per_frame2=y = if(q9,q16,y); |
| 157 | wave_2_per_frame3=v = if(q9,q19,v); |
| 158 | wave_2_per_frame4=w = if(q9,q20,w); |
| 159 | wave_2_per_frame5= |
| 160 | wave_2_per_frame6=ref_w = if(q9, q10, ref_w); |
| 161 | wave_2_per_frame7= |
| 162 | wave_2_per_frame8=t1 = x; |
| 163 | wave_2_per_frame9=t2 = y; |
| 164 | wave_2_per_frame10=t3 = v; |
| 165 | wave_2_per_frame11=t4 = w; |
| 166 | wave_2_per_frame12=t5 = ref_w; |
| 167 | wave_2_per_frame13= |
| 168 | wave_2_per_frame14=t8 = 1; |
| 169 | wave_2_per_point1=x = t1 + sample*sin(t5)*t3*20*cos(t4-t5); |
| 170 | wave_2_per_point2=y = t2 + sample*cos(t5)*t3*20*cos(t4-t5); |
| 171 | wave_2_per_point3= |
| 172 | wave_2_per_point4=x = 0.5 + (x-0.5)/q1; |
| 173 | wave_2_per_point5=y = 0.5 + (y-0.5)/q2; |
| 174 | wavecode_3_enabled=0 |
| 175 | wavecode_3_samples=512 |
| 176 | wavecode_3_sep=0 |
| 177 | wavecode_3_bSpectrum=1 |
| 178 | wavecode_3_bUseDots=0 |
| 179 | wavecode_3_bDrawThick=0 |
| 180 | wavecode_3_bAdditive=0 |
| 181 | wavecode_3_scaling=1.00000 |
| 182 | wavecode_3_smoothing=0.50000 |
| 183 | wavecode_3_r=1.000 |
| 184 | wavecode_3_g=0.000 |
| 185 | wavecode_3_b=0.000 |
| 186 | wavecode_3_a=1.000 |
| 187 | wave_3_init1=chance = 0; |
| 188 | wave_3_per_frame1=x = if(q9,q15,x); |
| 189 | wave_3_per_frame2=y = if(q9,q16,y); |
| 190 | wave_3_per_frame3=v = if(q9,q19,v); |
| 191 | wave_3_per_frame4=w = if(q9,q20,w); |
| 192 | wave_3_per_frame5= |
| 193 | wave_3_per_frame6=ref_w = if(q9, q10 + asin(1), ref_w); |
| 194 | wave_3_per_frame7= |
| 195 | wave_3_per_frame8=t1 = x; |
| 196 | wave_3_per_frame9=t2 = y; |
| 197 | wave_3_per_frame10=t3 = v; |
| 198 | wave_3_per_frame11=t4 = w; |
| 199 | wave_3_per_frame12=t5 = ref_w; |
| 200 | wave_3_per_frame13= |
| 201 | wave_3_per_frame14=t8 = 1; |
| 202 | wave_3_per_point1=x = t1 + sample*sin(t5)*t3*20*cos(t4-t5); |
| 203 | wave_3_per_point2=y = t2 + sample*cos(t5)*t3*20*cos(t4-t5); |
| 204 | wave_3_per_point3= |
| 205 | wave_3_per_point4=x = 0.5 + (x-0.5)/q1; |
| 206 | wave_3_per_point5=y = 0.5 + (y-0.5)/q2; |
| 207 | shapecode_0_enabled=1 |
| 208 | shapecode_0_sides=48 |
| 209 | shapecode_0_additive=1 |
| 210 | shapecode_0_thickOutline=0 |
| 211 | shapecode_0_textured=0 |
| 212 | shapecode_0_num_inst=1 |
| 213 | shapecode_0_x=0.500 |
| 214 | shapecode_0_y=0.500 |
| 215 | shapecode_0_rad=0.02770 |
| 216 | shapecode_0_ang=6.03186 |
| 217 | shapecode_0_tex_ang=6.03186 |
| 218 | shapecode_0_tex_zoom=0.68390 |
| 219 | shapecode_0_r=0.000 |
| 220 | shapecode_0_g=1.000 |
| 221 | shapecode_0_b=0.000 |
| 222 | shapecode_0_a=1.000 |
| 223 | shapecode_0_r2=0.000 |
| 224 | shapecode_0_g2=1.000 |
| 225 | shapecode_0_b2=0.000 |
| 226 | shapecode_0_a2=1.000 |
| 227 | shapecode_0_border_r=0.000 |
| 228 | shapecode_0_border_g=0.000 |
| 229 | shapecode_0_border_b=0.000 |
| 230 | shapecode_0_border_a=0.000 |
| 231 | shape_0_per_frame1=x = q3; |
| 232 | shape_0_per_frame2=y = q4; |
| 233 | shape_0_per_frame3=rad = q5; |
| 234 | shape_0_per_frame4= |
| 235 | shape_0_per_frame5= |
| 236 | shape_0_per_frame6=x = 0.5 + (x-0.5)/q2; |
| 237 | shape_0_per_frame7=y = 0.5 + (y-0.5)/q1; |
| 238 | shape_0_per_frame8= |
| 239 | shapecode_1_enabled=1 |
| 240 | shapecode_1_sides=48 |
| 241 | shapecode_1_additive=1 |
| 242 | shapecode_1_thickOutline=0 |
| 243 | shapecode_1_textured=0 |
| 244 | shapecode_1_num_inst=1 |
| 245 | shapecode_1_x=0.500 |
| 246 | shapecode_1_y=0.500 |
| 247 | shapecode_1_rad=0.02770 |
| 248 | shapecode_1_ang=6.03186 |
| 249 | shapecode_1_tex_ang=6.03186 |
| 250 | shapecode_1_tex_zoom=0.68390 |
| 251 | shapecode_1_r=0.000 |
| 252 | shapecode_1_g=0.000 |
| 253 | shapecode_1_b=1.000 |
| 254 | shapecode_1_a=1.000 |
| 255 | shapecode_1_r2=0.000 |
| 256 | shapecode_1_g2=0.000 |
| 257 | shapecode_1_b2=1.000 |
| 258 | shapecode_1_a2=1.000 |
| 259 | shapecode_1_border_r=0.000 |
| 260 | shapecode_1_border_g=0.000 |
| 261 | shapecode_1_border_b=0.000 |
| 262 | shapecode_1_border_a=0.000 |
| 263 | shape_1_per_frame1=x = q6; |
| 264 | shape_1_per_frame2=y = q7; |
| 265 | shape_1_per_frame3=rad = q8; |
| 266 | shape_1_per_frame4= |
| 267 | shape_1_per_frame5=x = 0.5 + (x-0.5)/q2; |
| 268 | shape_1_per_frame6=y = 0.5 + (y-0.5)/q1; |
| 269 | shape_1_per_frame7= |
| 270 | shapecode_2_enabled=0 |
| 271 | shapecode_2_sides=48 |
| 272 | shapecode_2_additive=0 |
| 273 | shapecode_2_thickOutline=0 |
| 274 | shapecode_2_textured=0 |
| 275 | shapecode_2_num_inst=1 |
| 276 | shapecode_2_x=0.500 |
| 277 | shapecode_2_y=0.500 |
| 278 | shapecode_2_rad=0.02770 |
| 279 | shapecode_2_ang=6.03186 |
| 280 | shapecode_2_tex_ang=6.03186 |
| 281 | shapecode_2_tex_zoom=0.68390 |
| 282 | shapecode_2_r=0.000 |
| 283 | shapecode_2_g=1.000 |
| 284 | shapecode_2_b=0.000 |
| 285 | shapecode_2_a=1.000 |
| 286 | shapecode_2_r2=0.000 |
| 287 | shapecode_2_g2=1.000 |
| 288 | shapecode_2_b2=0.000 |
| 289 | shapecode_2_a2=1.000 |
| 290 | shapecode_2_border_r=0.000 |
| 291 | shapecode_2_border_g=0.000 |
| 292 | shapecode_2_border_b=0.000 |
| 293 | shapecode_2_border_a=0.000 |
| 294 | shape_2_per_frame1=x = q9; |
| 295 | shape_2_per_frame2=y = q10; |
| 296 | shape_2_per_frame3=rad = q11; |
| 297 | shape_2_per_frame4= |
| 298 | shape_2_per_frame5=x = 0.5 + (x-0.5)/q2; |
| 299 | shape_2_per_frame6=y = 0.5 + (y-0.5)/q1; |
| 300 | shape_2_per_frame7= |
| 301 | shapecode_3_enabled=0 |
| 302 | shapecode_3_sides=48 |
| 303 | shapecode_3_additive=1 |
| 304 | shapecode_3_thickOutline=1 |
| 305 | shapecode_3_textured=0 |
| 306 | shapecode_3_num_inst=1 |
| 307 | shapecode_3_x=0.500 |
| 308 | shapecode_3_y=0.500 |
| 309 | shapecode_3_rad=0.02770 |
| 310 | shapecode_3_ang=6.03186 |
| 311 | shapecode_3_tex_ang=6.03186 |
| 312 | shapecode_3_tex_zoom=0.68390 |
| 313 | shapecode_3_r=0.000 |
| 314 | shapecode_3_g=1.000 |
| 315 | shapecode_3_b=0.000 |
| 316 | shapecode_3_a=0.000 |
| 317 | shapecode_3_r2=0.000 |
| 318 | shapecode_3_g2=1.000 |
| 319 | shapecode_3_b2=0.000 |
| 320 | shapecode_3_a2=0.000 |
| 321 | shapecode_3_border_r=1.000 |
| 322 | shapecode_3_border_g=1.000 |
| 323 | shapecode_3_border_b=1.000 |
| 324 | shapecode_3_border_a=1.000 |
| 325 | shape_3_per_frame1=x = q12; |
| 326 | shape_3_per_frame2=y = q13; |
| 327 | shape_3_per_frame3=rad = q14; |
| 328 | shape_3_per_frame4= |
| 329 | shape_3_per_frame5=x = 0.5 + (x-0.5)/q2; |
| 330 | shape_3_per_frame6=y = 0.5 + (y-0.5)/q1; |
| 331 | shape_3_per_frame7= |
| 332 | per_frame_init_1=x1 = 0.5; |
| 333 | per_frame_init_2=x2 = 0.51; |
| 334 | per_frame_init_3= |
| 335 | per_frame_init_4=y2 = 0.9; |
| 336 | per_frame_init_5=y1 = 0.7; |
| 337 | per_frame_init_6= |
| 338 | per_frame_init_7=x3 = 0.8; |
| 339 | per_frame_init_8=y3 = 0.5; |
| 340 | per_frame_init_9= |
| 341 | per_frame_init_10=x4 = 0.2; |
| 342 | per_frame_init_11=y4 = 0.5; |
| 343 | per_frame_init_12= |
| 344 | per_frame_init_13= |
| 345 | per_frame_init_14=ax1 = 0; |
| 346 | per_frame_init_15=ay1 = 0; |
| 347 | per_frame_init_16=ax2 = 0; |
| 348 | per_frame_init_17=ay2 = 0; |
| 349 | per_frame_init_18=ax3 = 0; |
| 350 | per_frame_init_19=ay3 = 0; |
| 351 | per_frame_init_20= |
| 352 | per_frame_init_21=vx1 = 0.000; |
| 353 | per_frame_init_22=vx2 = 0.000; |
| 354 | per_frame_1=zoom = 1.002; |
| 355 | per_frame_2=warp = 0.2; |
| 356 | per_frame_3=wave_a = 0; |
| 357 | per_frame_4=//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo |
| 358 | per_frame_5=r = 0.04+ max(bass_att,treb_att)*0.008; |
| 359 | per_frame_6=bounce = below(y1,r);y1 = y1+vy1;vy1 = if(bounce, abs(vy1)*0.94 + (r-y1)*0.1, vy1-0.0003*60/fps); |
| 360 | per_frame_7=bounce = below(x1,r);x1 = x1+vx1;vx1 = if(bounce, abs(vx1)*0.94 + (r-x1)*0.1, vx1); |
| 361 | per_frame_8=bounce = above(x1,1-r);vx1 = if(bounce, - abs(vx1)*0.94 + (1-r-x1)*0.04, vx1); |
| 362 | per_frame_9=bounce = below(y2,r);y2 = y2 + vy2;vy2 = if(bounce,abs(vy2)*0.94+(r-y2)*.1, vy2-0.0003*60/fps); |
| 363 | per_frame_10=bounce = below(x2,r);x2 = x2+ vx2;vx2 = if(bounce, abs(vx2)*0.94 + (r-x2)*0.1, vx2); |
| 364 | per_frame_11=bounce = above(x2,1-r);vx2 = if(bounce, - abs(vx2)*0.94 + (1-r-x2)*0.1, vx2); |
| 365 | per_frame_12=bounce = below(y3,r);y3 = y3 + vy3;vy3 = if(bounce,abs(vy3)*0.94+(r-y3)*.1, vy3-0.0003*60/fps); |
| 366 | per_frame_13=bounce = below(x3,r);x3 = x3+ vx3;vx3 = if(bounce, abs(vx3)*0.94 + (r-x3)*0.1, vx3); |
| 367 | per_frame_14=bounce = above(x3,1-r);vx3 = if(bounce, - abs(vx3)*0.94 + (1-r-x3)*0.1, vx3); |
| 368 | per_frame_15=bounce = below(y4,r);y4 = y4 + vy4;vy4 = if(bounce,abs(vy4)*0.94+(r-y4)*.1, vy4-0.0003*60/fps); |
| 369 | per_frame_16=bounce = below(x4,r);x4 = x4+ vx4;vx4 = if(bounce, abs(vx4)*0.94 + (r-x4)*0.1, vx4); |
| 370 | per_frame_17=bounce = above(x4,1-r);vx4 = if(bounce, - abs(vx4)*0.94 + (1-r-x4)*0.1, vx4); |
| 371 | per_frame_18=bounce = below( sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)), 2*r); |
| 372 | per_frame_19=ref_ang = atan2(x2-x1,y2-y1)+asin(1); // common tangent |
| 373 | per_frame_20=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx1,vy1);w2 = atan2(vx2,vy2); |
| 374 | per_frame_21=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 375 | per_frame_22=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 376 | per_frame_23=vx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2); |
| 377 | per_frame_24=vy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2); |
| 378 | per_frame_25=bounce = below( sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)), 2*r); |
| 379 | per_frame_26=ref_ang = atan2(x3-x1,y3-y1)+asin(1); // common tangent |
| 380 | per_frame_27=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx1,vy1);w2 = atan2(vx3,vy3); |
| 381 | per_frame_28=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 382 | per_frame_29=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 383 | per_frame_30=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3); |
| 384 | per_frame_31=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3); |
| 385 | per_frame_32=bounce = below( sqrt( sqr(x2+vx2-x3-vx3) + sqr(y2+vy2-y3-vy3)), 2*r); |
| 386 | per_frame_33=ref_ang = atan2(x3-x2,y3-y2)+asin(1); // common tangent |
| 387 | per_frame_34=v1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx2,vy2);w2 = atan2(vx3,vy3); |
| 388 | per_frame_35=vx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2); |
| 389 | per_frame_36=vy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2); |
| 390 | per_frame_37=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3); |
| 391 | per_frame_38=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3); |
| 392 | per_frame_39=bounce = below( sqrt( sqr(x1+vx1-x4-vx4) + sqr(y1+vy1-y4-vy4)), 2*r); |
| 393 | per_frame_40=ref_ang = atan2(x4-x1,y4-y1)+asin(1); // common tangent |
| 394 | per_frame_41=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx1,vy1);w2 = atan2(vx4,vy4); |
| 395 | per_frame_42=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 396 | per_frame_43=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 397 | per_frame_44=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 398 | per_frame_45=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 399 | per_frame_46=bounce = below( sqrt( sqr(x2+vx2-x4-vx4) + sqr(y2+vy2-y4-vy4)), 2*r); |
| 400 | per_frame_47=ref_ang = atan2(x4-x2,y4-y2)+asin(1); // common tangent |
| 401 | per_frame_48=v1 = sqrt(vx2*vx2+vy2*vy2);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx2,vy2);w2 = atan2(vx4,vy4); |
| 402 | per_frame_49=vx2 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx2); |
| 403 | per_frame_50=vy2 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy2); |
| 404 | per_frame_51=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 405 | per_frame_52=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 406 | per_frame_53=bounce = below( sqrt( sqr(x3+vx3-x4-vx4) + sqr(y3+vy3-y4-vy4)), 2*r); |
| 407 | per_frame_54=ref_ang = atan2(x4-x3,y4-y3)+asin(1); // common tangent |
| 408 | per_frame_55=v1 = sqrt(vx3*vx3+vy3*vy3);v2 = sqrt(vx4*vx4+vy4*vy4);w1 = atan2(vx3,vy3);w2 = atan2(vx4,vy4); |
| 409 | per_frame_56=vx3 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx3); |
| 410 | per_frame_57=vy3 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy3); |
| 411 | per_frame_58=vx4 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx4); |
| 412 | per_frame_59=vy4 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy4); |
| 413 | per_frame_60=//pogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogopogo |
| 414 | per_frame_61=q1 = aspectx; |
| 415 | per_frame_62=q2 = aspecty; |
| 416 | per_frame_63=q3 = x1; |
| 417 | per_frame_64=q4 = y1; |
| 418 | per_frame_65=q5 = r*2; |
| 419 | per_frame_66=q6 = x2; |
| 420 | per_frame_67=q7 = y2; |
| 421 | per_frame_68=q8 = r*2; |
| 422 | per_frame_69=q9 = x3; |
| 423 | per_frame_70=q10 = y3; |
| 424 | per_frame_71=q11 = r*2; |
| 425 | per_frame_72=q12 = x4; |
| 426 | per_frame_73=q13 = y4; |
| 427 | per_frame_74=q14 = r*2; |
| 428 | per_frame_75=q15 = atan2(vx4,vy4); |
| 429 | per_frame_76=q16 = sqrt(vx4*vx4+vy4*vy4); |
| 430 | per_frame_77=q17 = atan2(vx3,vy3); |
| 431 | per_frame_78=q18 = sqrt(vx3*vx3+vy3*vy3); |
| 432 | per_pixel_1=x = 0.5 + (x-0.5)*q2; |
| 433 | per_pixel_2=y = 0.5 + (y-0.5)*q1; |
| 434 | per_pixel_3= |
| 435 | per_pixel_4= |
| 436 | per_pixel_5=dir = -q15 + asin(1); |
| 437 | per_pixel_6=b1 = 0.075; |
| 438 | per_pixel_7=m1 = q16*25; |
| 439 | per_pixel_8=xx = q12; |
| 440 | per_pixel_9=yy = 1-q13; |
| 441 | per_pixel_10=x1 = xx -sin(dir)*b1; |
| 442 | per_pixel_11=y1 = yy -cos(dir)*b1; |
| 443 | per_pixel_12=x2 = xx +sin(dir)*b1; |
| 444 | per_pixel_13=y2 = yy +cos(dir)*b1; |
| 445 | per_pixel_14=d1 = sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y))-b1*2; |
| 446 | per_pixel_15=d2 = sqrt((x2-x)*(x2-x)+(y2-y)*(y2-y))-b1*2; |
| 447 | per_pixel_16=si1 = sigmoid(-d1,1000); |
| 448 | per_pixel_17=si2 = sigmoid(-d2,1000); |
| 449 | per_pixel_18=dx = (si1*sin(y1-y)*m1*d1 - si2*sin(y2-y)*m1*d2)*3*q1; |
| 450 | per_pixel_19=dy = (-si1*sin(x1-x)*m1*d1 + si2*sin(x2-x)*m1*d2)*3*q2; |
| 451 | per_pixel_20= |
| 452 | per_pixel_21=dir = -q17 + asin(1); |
| 453 | per_pixel_22=m1 = q18*25; |
| 454 | per_pixel_23=xx = q9; |
| 455 | per_pixel_24=yy = 1-q10; |
| 456 | per_pixel_25=x1 = xx -sin(dir)*b1; |
| 457 | per_pixel_26=y1 = yy -cos(dir)*b1; |
| 458 | per_pixel_27=x2 = xx +sin(dir)*b1; |
| 459 | per_pixel_28=y2 = yy +cos(dir)*b1; |
| 460 | per_pixel_29=d1 = sqrt((x1-x)*(x1-x)+(y1-y)*(y1-y))-b1*2; |
| 461 | per_pixel_30=d2 = sqrt((x2-x)*(x2-x)+(y2-y)*(y2-y))-b1*2; |
| 462 | per_pixel_31=si1 = sigmoid(-d1,1000); |
| 463 | per_pixel_32=si2 = sigmoid(-d2,1000); |
| 464 | per_pixel_33=dx = dx + (si1*sin(y1-y)*m1*d1 - si2*sin(y2-y)*m1*d2)*3*q1; |
| 465 | per_pixel_34=dy = dy + (-si1*sin(x1-x)*m1*d1 + si2*sin(x2-x)*m1*d2)*3*q2; |
| 466 | warp_1=`shader_body |
| 467 | warp_2=`{ |
| 468 | warp_3=` float2 d = texsize.zw * 8; |
| 469 | warp_4=` float3 dx = ( GetBlur1(uv + float2(1,0)*d) - GetBlur1(uv-float2(1,0)*d) ); |
| 470 | warp_5=` float3 dy = ( GetBlur1(uv + float2(0,1)*d) - GetBlur1(uv-float2(0,1)*d) ); |
| 471 | warp_6=` float2 dither_uv = uv_orig*texsize.xy*texsize_noise_lq.zw * 1 + rand_frame.xy; |
| 472 | warp_7=` |
| 473 | warp_8=`float2 uv_blue = lerp(uv_orig,uv,1) + float2(dx.z,dy.z)*texsize.zw*4; |
| 474 | warp_9=`ret.z = GetPixel(uv_blue).z - (GetPixel(uv_blue).z - GetBlur3(uv_blue).z)*0.02 - 0.008 |
| 475 | warp_10=` +(tex2D(sampler_noise_lq, dither_uv).xyz-0.5) *0.1; |
| 476 | warp_11=` |
| 477 | warp_12=` |
| 478 | warp_13=`float2 uv_red = 0.5 + (uv-0.5) - float2(0,0)*texsize.zw - float2(dx.x,dy.x)*texsize.zw; |
| 479 | warp_14=`ret.x = tex2D( sampler_main, uv_red ).x; |
| 480 | warp_15=`ret.x += (ret.x - GetBlur3(uv_red)).x*0.4 + 0.006; |
| 481 | warp_16=` |
| 482 | warp_17=` |
| 483 | warp_18=`float2 uv_green = lerp(uv_orig,uv,1) - float2(dx.x,dy.x)*texsize.zw*8 |
| 484 | warp_19=` + float2(dx.y,dy.y)*texsize.zw*4 |
| 485 | warp_20=` + float2(dx.z,dy.z)*texsize.zw*8; |
| 486 | warp_21=`ret.y = tex2d(sampler_fc_main,uv_green).y; |
| 487 | warp_22=`ret.y *= 1 + ret.x*0.1; |
| 488 | warp_23=`ret.y -= 0.004 + saturate(ret.z)*0.04; |
| 489 | warp_24=`} |
| 490 | comp_1=`shader_body |
| 491 | comp_2=`{ |
| 492 | comp_3=` float2 d = texsize.zw*4; |
| 493 | comp_4=` float3 dx = ( GetBlur1(uv+float2(1,0)*d)-GetBlur1(uv-float2(1,0)*d) ); |
| 494 | comp_5=` float3 dy = ( GetBlur1(uv+float2(0,1)*d)-GetBlur1(uv-float2(0,1)*d) ); |
| 495 | comp_6=` |
| 496 | comp_7=`float2 uv_x = uv - float2(dx.z,dy.z)*0.1 + float2(dx.y,dy.y)*0.06; |
| 497 | comp_8=`ret = GetBlur2(uv_x).x*saturate(1-GetPixel(uv).z)*pow(hue_shader.yxz,8)*3; |
| 498 | comp_9=`ret = lerp(ret,pow(hue_shader.yzx,8)*1.4,GetPixel(uv_x).x*0.8 + GetBlur1(uv_x).x); |
| 499 | comp_10=`ret *= saturate(1 - GetBlur1(uv).y*4); |
| 500 | comp_11=`ret = lerp(ret,1,pow(hue_shader,8)*GetPixel(saturate(uv - float2(dx.y,dy.y)*2)).z*1.2); |
| 501 | comp_12=`ret = lerp(ret,pow(hue_shader,8).zxy*1.8,GetPixel(uv).y); |
| 502 | comp_13=`} |